import { Column, Entity, PrimaryGeneratedColumn, OneToMany, OneToOne } from 'typeorm';

@Entity('file')
export class FileEn {
  @PrimaryGeneratedColumn({ comment: '文件Id' })
  id: number;

  @Column({ comment: '映射' })
  mapping: string;

  @Column({ comment: '文件名称', length: 16 })
  filename: string;

  @Column({ comment: '路径' })
  path: string;

  @Column({ comment: '类型' })
  type: string;

  @Column({ comment: '大小' })
  size: string;

  @Column({ comment: '后缀' })
  prefix: string;
}
